SMAHR02800_간암판정[공단건진].xrw 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHR01000.xrw
  4. * 설 명 : 검사결과관리[일반건진]
  5. * 설 계 자 : 김호익
  6. * 작 성 자 : 김호익
  7. * 작 성 일 : 2007.07.13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <acptinfo>
  20. <item>
  21. <pid/>
  22. <hngnm/>
  23. <rgstno1/>
  24. <rgstno2/>
  25. <sex/>
  26. <age/>
  27. <cmpycd/>
  28. <cmpynm/>
  29. <pkgcd/>
  30. <pkgnm/>
  31. <schlgrde/>
  32. <clsid/>
  33. <stuid/>
  34. <plceflag/>
  35. <orddd/>
  36. <judgdd/>
  37. <judgdrid/>
  38. <drnm/>
  39. <reexamfg/>
  40. </item>
  41. <rsltlst>
  42. <item>
  43. <prcpdd/>
  44. <execprcpuniqno/>
  45. <prcpno/>
  46. <testcd/>
  47. <testnm/>
  48. <testrsltcnts>
  49. </testrsltcnts>
  50. <outtestrsltcnts/>
  51. <rsltunit/>
  52. <rsltflag/>
  53. <remcnts/>
  54. <assorsltcnts/>
  55. <judgcd/>
  56. <judgrsltcnts/>
  57. <inptflag/>
  58. <choirslt>
  59. <item/>
  60. </choirslt>
  61. <judgmark/>
  62. <refh/>
  63. <refl/>
  64. </item>
  65. </rsltlst>
  66. <rsltlst2>
  67. <item>
  68. <prcpdd/>
  69. <execprcpuniqno/>
  70. <prcpno/>
  71. <testcd/>
  72. <testnm/>
  73. <testrsltcnts>
  74. </testrsltcnts>
  75. <outtestrsltcnts/>
  76. <rsltunit/>
  77. <rsltflag/>
  78. <remcnts/>
  79. <assorsltcnts/>
  80. <judgcd/>
  81. <judgrsltcnts/>
  82. <inptflag/>
  83. <choirslt>
  84. <item/>
  85. </choirslt>
  86. <judgmark/>
  87. <refh/>
  88. <refl/>
  89. </item>
  90. </rsltlst2>
  91. <judginfo>
  92. <livercncrjudg>
  93. <judgdd/>
  94. <judgdrid/>
  95. <liveralt/>
  96. <bhptsexammthd/>
  97. <bhptsexamrslt/>
  98. <bhptsjud/>
  99. <chptsexammthd/>
  100. <chptsexamrslt/>
  101. <chptsexamrsltval/>
  102. <chptsexamrsltbval/>
  103. <chptsjudg/>
  104. <echoexamobscmt1/>
  105. <echoexamobscmt2/>
  106. <echoexamobscmt3/>
  107. <echoexambenisick/>
  108. <echoexamhepadoubkind/>
  109. <echoexamhepadoubsickpos/>
  110. <echoexamhepadoubsicksize/>
  111. <echoexamhepadoubetc/>
  112. <echoexamhepadoubetcrem/>
  113. <serumexammthd/>
  114. <serumexamfixcommthdrslt/>
  115. <serumexamfixqtymthdexamrslt/>
  116. <serumexamfixqtymthdexamunit/>
  117. <serumexamfixqtymthdexambval/>
  118. <judgflag/>
  119. <judgflagetcrem/>
  120. <judgexamcnts/>
  121. <oldlivercncrpatyn/>
  122. </livercncrjudg>
  123. <specjudg/>
  124. <genrjudg/>
  125. </judginfo>
  126. <inqrlst>
  127. <item>
  128. <inqrcd/>
  129. <inqrnm/>
  130. <answcd/>
  131. <answcnts/>
  132. <remcnts/>
  133. <answflag/>
  134. <inptflag/>
  135. <inqrflag/>
  136. </item>
  137. </inqrlst>
  138. </acptinfo>
  139. <tempinfo>
  140. <rslttext>
  141. <rsltcnts/>
  142. <rslt_idx/>
  143. <rslt_col/>
  144. </rslttext>
  145. <anslst>
  146. <anslst>
  147. <item>
  148. <answcd/>
  149. <answcnts/>
  150. <answcnts/>
  151. <reminptyn/>
  152. </item>
  153. </anslst>
  154. </anslst>
  155. <choilst>
  156. <item3>
  157. <sel/>
  158. <rsltcd/>
  159. <rsltnm/>
  160. </item3>
  161. <item4>
  162. <sel/>
  163. <rsltcd/>
  164. <rsltnm/>
  165. </item4>
  166. </choilst>
  167. <answcd/>
  168. <assorsltlst>
  169. <itemasso>
  170. <sel/>
  171. <rsltcd/>
  172. <rsltnm/>
  173. </itemasso>
  174. </assorsltlst>
  175. </tempinfo>
  176. </main>
  177. </root>
  178. </instance>
  179. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  180. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  181. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  182. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  183. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  184. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  185. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  186. <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
  187. <submission id="TXAHR01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  188. <submission id="TXAHB02402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
  189. <submission id="TRAHR01004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptinfo/judginfo"/>
  190. <submission id="TXAHR02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  191. <submission id="TXAHR02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  192. <submission id="TRAHR02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptinfo/judginfo"/>
  193. </model>
  194. <script type="javascript">
  195. <![CDATA[
  196. var m_vHealexamflag = "G";
  197. function fViewNum(){
  198. window.parent.javascript.vidx = "1";
  199. }
  200. /**
  201. * 소견 및 조치내용 가져오기
  202. * 소견및 조치내용은 종합판정문구 관리에서 건진구분 - 일반으로 관리.
  203. * vEditObj : 선택한 판정내용이 입력될 입력컨트롤명
  204. * SPAHR00300_PARAM1: 다중선택여부(Y/N)
  205. * SPAHR00300_PARAM2: 목적노드Set
  206. * SPAHR00300_PARAM3: 종합판정문구코드 목적노드
  207. * SPAHR00300_PARAM4: 종합판정문구내용 목적노드
  208. * SPAHR00300_PARAM5: 종합판정문구검색코드
  209. * SPAHR00300_PARAM6: 종합판정문구검색내용
  210. * SPAHR00300_PARAM7: 건진구분
  211. */
  212. function fGetJudgExmpCnts(vEditObj,jCode){
  213. if( vEditObj == null ) return ;
  214. model.makeNode("/root/temp/judgexaminfo");
  215. setParameter("SPAHR00300_PARAM1", "Y");
  216. setParameter("SPAHR00300_PARAM2", "/root/temp/judgexaminfo");
  217. setParameter("SPAHR00300_PARAM7", fGetHealExamFlag() );
  218. setParameter("SPAHR00300_PARAM8", jCode );
  219. modal("SPAHR00300", 100, 100, "SPAHR00300");
  220. if( model.getValue("/root/temp/SPAHR00300/okflag") != "ok" ) return ;
  221. var vNodeList = instance1.selectNodes("/root/temp/judgexaminfo/list");
  222. if( vNodeList == null ) reutrn ;
  223. var vJudgCnts = model.getValue( vEditObj.attribute("ref") );
  224. for( var i = 0 ; i < vNodeList.length ; i++){
  225. vJudgCnts += "- "+vNodeList.item(i).judghangcnts.text;
  226. }
  227. model.setValue( vEditObj.attribute("ref") , vJudgCnts );
  228. vEditObj.refresh();
  229. }
  230. function fCheckExamInfo(){
  231. var idx = window.parent.grd_acptlst.row;
  232. if( idx < 1) {
  233. //messageBox("수진자를 ", "C002");
  234. return false;
  235. }
  236. model.copyNode("/root/main/acptinfo/item", window.parent.grd_acptlst.nodeset + "[" + idx + "]");
  237. //결과내역가져오기
  238. var sNode = window.parent.grd_acptlst.nodeset + "[" + idx + "]/";
  239. var rsrvdd = window.parent.model.getValue(sNode + "rsrvdd");
  240. var rsrvno = window.parent.model.getValue(sNode + "rsrvno");
  241. var pid = window.parent.model.getValue(sNode + "pid");
  242. var orddd = window.parent.model.getValue(sNode + "orddd");
  243. var cretno = window.parent.model.getValue(sNode + "cretno");
  244. var pkgcd = window.parent.model.getValue(sNode + "pkgcd");
  245. if( (pid == "" ) || (orddd=="") || (cretno == "") || (rsrvdd == "") || (rsrvno == "") ){
  246. messageBox("유효하지 않은 데이터 입니다!", "E999");
  247. return false;
  248. }
  249. model.setValue("/root/send/srchrsrvdd" , rsrvdd );
  250. model.setValue("/root/send/srchrsrvno" , rsrvno );
  251. model.setValue("/root/send/srchpid" , pid );
  252. model.setValue("/root/send/srchorddd" , orddd );
  253. model.setValue("/root/send/srchcretno" , cretno );
  254. model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag() );
  255. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
  256. //model.setValue("/root/send/srchpkgcd" , pkgcd);
  257. }
  258. /**
  259. *건진내역별 상세내역가져오기( 판정내역조회)
  260. *건진구분/건진일자/검사실/환자id/단체코드/패키지코드별 조회
  261. */
  262. function fGetJudgInfo( ){
  263. if( fCheckExamInfo() == false ) return ;
  264. openLoadingBar("판정정보 ") ;//처리중 화면을 오픈한다.
  265. model.makeValue("root/send/srchhealexamflag","G");
  266. submit("TRAHR02801") ;
  267. // 특정값에 따라 Disabled 여부 결정
  268. fDisabledChk();
  269. closeLoadingBar() ;//처리중 화면을 close한다.
  270. }
  271. /**===================================================================================
  272. @desc : 공통 저장정보관련 check
  273. *접수정보 : 건진구분/건진상세구분/예약일자/예약번호/등록번호/진료일자
  274. *저장구분 : I=> 문진만, R=>결과만, J1 => 1차판정만 ...
  275. =====================================================================================*/
  276. function fCheckSaveInfo(){
  277. var idx = opener.grd_acptlst.row;
  278. if( idx < 1 ) {
  279. return false;
  280. }
  281. if( m_vHealexamflag == "" ) {
  282. messageBox("업무구분이 존재하지 않습니다.", "E999");
  283. return false;
  284. }
  285. var vAcptNode = opener.grd_acptlst.nodeset + "[" + idx;
  286. model.removenode("/root/send/save");
  287. model.refresh();
  288. var idx = window.parent.grd_acptlst.row;
  289. if( idx < 1) {
  290. //messageBox("수진자를 ", "C002");
  291. return false;
  292. }
  293. //결과내역가져오기
  294. var sNode = window.parent.grd_acptlst.nodeset + "[" + idx + "]/";
  295. var rsrvdd = window.parent.model.getValue(sNode + "rsrvdd");
  296. var rsrvno = window.parent.model.getValue(sNode + "rsrvno");
  297. var pid = window.parent.model.getValue(sNode + "pid");
  298. var orddd = window.parent.model.getValue(sNode + "orddd");
  299. var cretno = window.parent.model.getValue(sNode + "cretno");
  300. var pkgcd = window.parent.model.getValue(sNode + "pkgcd");
  301. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/healexamflag" , m_vHealexamflag );
  302. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/healexamdetlflag" , fGetHealExamFlag() );
  303. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/rsrvdd" , rsrvdd );
  304. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/rsrvno" , rsrvno );
  305. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/pid" , pid );
  306. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/orddd" , orddd );
  307. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/cretno" , cretno );
  308. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/pkgcd" , pkgcd );
  309. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/sex" , model.getValue("/root/main/acptinfo/item/sex") );
  310. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/age" , model.getValue("root/main/acptinfo/item/age") );
  311. model.makeValue("/root/main/acptinfo/judginfo/livercncrjudg/judgcd" , "V");
  312. return true ;
  313. }
  314. /*===================================================================================
  315. ** 판정입력구분
  316. *1 - 1차 + 구강
  317. *2 - 2차
  318. *S - 특수건진
  319. *B - 혈액정밀
  320. *C - 암건진
  321. ===================================================================================*/
  322. function fGetJudgInptFlag() {
  323. var judg_idx = swt_judg.selectedIndex ;
  324. var ret = "1" ;
  325. switch ( judg_idx ) {
  326. case 0:
  327. ret = "1" ;
  328. break;
  329. case 1:
  330. ret = "2" ;
  331. break;
  332. case 2:
  333. ret = "1" ;
  334. break;
  335. case 3:
  336. ret = "S" ;
  337. break;
  338. case 4:
  339. ret = "B" ;
  340. break;
  341. case 5:
  342. ret = "C" ;
  343. break;
  344. default:
  345. ret = "1" ;
  346. break;
  347. }
  348. return ret;
  349. }
  350. /**===================================================================================
  351. @desc : 판정입력
  352. *접수정보 : 건진구분/건진상세구분/예약일자/예약번호/등록번호/진료일자
  353. *판정내역 :
  354. @param :bCheckSave => true이면 저장기본정보 check.
  355. 전체저장시는 저장기본정보를 check할 필요가 없으므로...pass하도록...하기위해.
  356. =====================================================================================*/
  357. function fSaveJudg( bCheckSave ){
  358. var ret = false;
  359. var signedData = "";
  360. if( bCheckSave == true ){
  361. if( !fCheckSaveInfo() ) return ret ;
  362. }
  363. //model.setValue("/root/send/save/judginptflag", "L" );
  364. if( model.getValue( cmb_scndjudgdrid.attribute("ref") ) == "" ) {
  365. messageBox("판정의를 ", "C001");
  366. return ret;
  367. }
  368. model.makeNode("/root/send/save/savejudg");
  369. model.resetInstanceNode("/root/send/save/savejudg");
  370. model.copyNode("/root/send/save/savejudg", "/root/main/acptinfo/judginfo/livercncrjudg");
  371. var livercncr_judg = getNodeListCSV(instance1.selectNodes("/root/main/acptinfo/judginfo/livercncrjudg"));
  372. // 인증저장만 콜한다. 인증데이터 저장은 하지 않음
  373. /************************************************************************************************************
  374. 2010.04.27. 여의도 성모병원 산업의학센터 정은덕 선생님 요청으로 인증저장 주석처리함.
  375. *************************************************************************************************************/
  376. //signedData = zesfSignData( livercncr_judg , getUserId(), true );
  377. //if(signedData == null || signedData == "") return;
  378. openLoadingBar("판정 저장 중입니다..") ;//처리중 화면을 오픈한다.
  379. ret = submit("TXAHR02801");
  380. closeLoadingBar() ;//처리중 화면을 close한다.
  381. //정상적 저장 시 판정내역 재 조회
  382. if(ret == true){
  383. fGetJudgInfo();
  384. }
  385. return ret;
  386. }
  387. /**===================================================================================
  388. @desc : 공통 저장정보관련 초기화
  389. =====================================================================================*/
  390. function fInitSaveData(){
  391. model.resetInstanceNode("/root/send/save");
  392. }
  393. function fInitDasplay() {
  394. //1차건진 판정코드
  395. model.copyNode("/root",opener.root);//parent
  396. nodenumber = 0;
  397. fCtrlSize();
  398. fSetGridInitState(grd_rsltlst);
  399. btn_fstjudg.selected = true;
  400. model.toggle("case_first");
  401. grd_rsltlst.clearStatus();
  402. model.refresh();
  403. // 특정값에 따라 Disabled 여부 결정
  404. fDisabledChk();
  405. }
  406. function fInitDasplayResult(){
  407. model.copyNode("/root", opener.root);//parent
  408. model.refresh();
  409. }
  410. function fdataValue(vTestcd,vSubcd){
  411. var nodeCount = getNodesetCount("/root/main/acptinfo/rsltlst/itemexmp");
  412. for (var i=0; i<=nodeCount;i++){
  413. // if ((model.getValue("/root/main/tempinfo/assorsltlst/itemasso["+i +"]/testcd")==vTestcd) && (model.getValue("/root/main/tempinfo/assorsltlst/itemasso["+i +"]/rsltcd")==vSubcd)){
  414. if ((model.getValue("/root/main/acptinfo/rsltlst/itemexmp["+i +"]/testcd")==vTestcd) && (model.getValue("/root/main/acptinfo/rsltlst/itemexmp["+i +"]/rsltcd")==vSubcd)){
  415. nodenumber = i;
  416. return model.getValue("/root/main/acptinfo/rsltlst/itemexmp["+i+"]/rsltnm");
  417. }
  418. }
  419. }
  420. /**
  421. ** 결과입력 grid size 늘이기/줄이기
  422. */
  423. function fSetRsltSwtSize( bLarge ){
  424. //기존상태 높이
  425. if(getUserInfo("dutplceinstcd") == "011"){
  426. var cur_height = 189;
  427. var max_height = 538 ;
  428. }else{
  429. var cur_height = 214;
  430. var max_height = 558 ;
  431. }
  432. if( bLarge == true ){
  433. cur_height = max_height ;
  434. btn_large.visible = false;
  435. btn_small.visible = true;
  436. }
  437. else {
  438. btn_large.visible = true;
  439. btn_small.visible = false;
  440. }
  441. grd_rsltlst.attribute("height") = parseInt( cur_height ) ;
  442. }
  443. function fdataValueAsso(vTestcd,vSubcd){
  444. var nodeCount = getNodesetCount("/root/main/acptinfo/rsltlst/itemassoexmp");
  445. for (var i=0; i<nodeCount;i++){
  446. if ((model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i +"]/testcd")==vTestcd) && (model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i +"]/rsltcd")==vSubcd)){
  447. nodenumber = i;
  448. return model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i+"]/rsltnm");
  449. }
  450. }
  451. }
  452. // 특정값에 따라 Disabled 여부 결정
  453. function fDisabledChk() {
  454. var echoexamhepadoubetc = model.getValue("/root/main/acptinfo/judginfo/livercncrjudg/echoexamhepadoubetc");
  455. var bol = isSearchString(echoexamhepadoubetc ,"05");
  456. if (bol == true) {
  457. ipt_echoexamhepadoubetcrem.disabled = false;
  458. } else {
  459. ipt_echoexamhepadoubetcrem.disabled = true;
  460. }
  461. var judgflag = model.getValue("/root/main/acptinfo/judginfo/livercncrjudg/judgflag");
  462. var bol = isSearchString(judgflag ,"04");
  463. if (bol == true) {
  464. ipt_judgflagetcrem.disabled = false;
  465. } else {
  466. ipt_judgflagetcrem.disabled = true;
  467. }
  468. }
  469. /*사업장코드가 011(여의도성모)일 경우 크기 조정필요*/
  470. function fCtrlSize(){
  471. if(getUserInfo("dutplceinstcd") == "011"){
  472. btn_fstjudg.attribute("top") = 194 + "px";
  473. btn_judg.attribute("top") = 195 + "px";
  474. swt_judg.attribute("top") = 215 + "px";
  475. grd_rsltlst.attribute("height") = 189 + "px";
  476. }else{
  477. btn_fstjudg.attribute("top") = 219 + "px";
  478. btn_judg.attribute("top") = 220 + "px";
  479. swt_judg.attribute("top") = 240 + "px";
  480. grd_rsltlst.attribute("height") = 214 + "px";
  481. }
  482. }
  483. function fSetGridInitState(vGrdObj){
  484. if(vGrdObj == null ) return ;
  485. vGrdObj.rebuildStyle();
  486. vGrdObj.refresh();
  487. var cnt = vGrdObj.rows;
  488. for( var i = 1 ; i <= cnt ; i++){
  489. var testrslt = vGrdObj.valueMatrix(i, vGrdObj.colRef("testrsltcnts"));
  490. var low = vGrdObj.valueMatrix(i, vGrdObj.colRef("minval"));
  491. var high = vGrdObj.valueMatrix(i, vGrdObj.colRef("maxval"));
  492. // 기준치에 따른 색깔변경
  493. if("H" == vGrdObj.valueMatrix( i , vGrdObj.colRef("judgrsltcnts") ) ) {
  494. vGrdObj.cellStyle("background-color" , i , vGrdObj.colRef("judgrsltcnts") , i , vGrdObj.colRef("judgrsltcnts")) = "#ff7a85";
  495. }
  496. if("L" == vGrdObj.valueMatrix( i , vGrdObj.colRef("judgrsltcnts") ) ) {
  497. vGrdObj.cellStyle("background-color" , i , vGrdObj.colRef("judgrsltcnts") , i , vGrdObj.colRef("judgrsltcnts")) = "#ccffcc";
  498. }
  499. //결과값이 하한가와 상한가 범위를 벗어난 경우 색으로 구분(녹색:하한가보다 작은 경우, 분홍색:상한가보다 큰 경우)
  500. if(testrslt != ""){
  501. if(!isNaN(testrslt)){
  502. if(low != ""){
  503. if(eval(testrslt) < eval(low)){
  504. vGrdObj.cellStyle("background-color", i, 7) = "#ccffcc";
  505. }
  506. }
  507. if(high != ""){
  508. if(eval(testrslt) > eval(high)){
  509. vGrdObj.cellStyle("background-color", i, 7) = "#ff7a85";
  510. }
  511. }
  512. }
  513. }else{
  514. continue;
  515. }
  516. }
  517. vGrdObj.refresh();
  518. }
  519. ]]>
  520. </script>
  521. </xhtml:head>
  522. <xhtml:body>
  523. <group id="grp_rslt2" visibility="hidden" style="left:445px; top:50px; width:295px; height:245px; ">
  524. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">선택형결과입력</caption>
  525. <datagrid id="datagrid1" nodeset="/root/main/tempinfo/choilst/item4" allowselection="false" caption="V^코드^결과내용" colsep="^" colwidth="24, 35, 200" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:23px; width:285px; height:215px; ">
  526. <col checkvalue="Y,N" ref="sel" type="checkbox" visibility="hidden"/>
  527. <col ref="rsltcd" visibility="visible"/>
  528. <col ref="rsltnm"/>
  529. </datagrid>
  530. <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:290px; y2:20px; "/>
  531. <button id="button1" class="icon_plus" style="left:275px; top:4px; width:13px; height:15px; ">
  532. <caption/>
  533. <script type="javascript" ev:event="DOMActivate">
  534. <![CDATA[
  535. //fAddRsltChoi();
  536. grp_rslt2.visible = false;
  537. ]]>
  538. </script>
  539. </button>
  540. </group>
  541. <group id="grp_choi" visibility="hidden" style="left:35px; top:40px; width:295px; height:245px; ">
  542. <caption id="caption55" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">선택형결과입력</caption>
  543. <datagrid id="grd_choilst" nodeset="/root/main/tempinfo/choilst/item3" allowselection="false" caption="V^코드^결과내용" colsep="^" colwidth="24, 14, 207" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:23px; width:285px; height:215px; ">
  544. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  545. <col ref="rsltcd" visibility="hidden"/>
  546. <col ref="rsltnm"/>
  547. </datagrid>
  548. <line id="line35" class="line_1" style="x1:5px; y1:20px; x2:290px; y2:20px; "/>
  549. <button id="btn_choiclose" class="icon_plus" style="left:275px; top:4px; width:13px; height:15px; ">
  550. <caption/>
  551. <script type="javascript" ev:event="DOMActivate">
  552. <![CDATA[
  553. fAddRsltChoi();
  554. grp_choi.visible = false;
  555. ]]>
  556. </script>
  557. </button>
  558. </group>
  559. <group id="grp_textrslt" visibility="hidden" style="left:365px; top:25px; width:295px; height:300px; ">
  560. <caption id="caption58" class="tit_2" style="left:5px; top:10px; width:108px; height:13px; ">서술형결과입력</caption>
  561. <line id="line37" class="line_1" style="x1:5px; y1:25px; x2:290px; y2:25px; "/>
  562. <button id="btn_textclose" class="icon_plus" style="left:275px; top:4px; width:13px; height:15px; ">
  563. <caption/>
  564. <script type="javascript" ev:event="DOMActivate">
  565. <![CDATA[
  566. if( model.getValue("/root/main/tempinfo/rslttext/rslt_col") == window.parent.javaScript.col_rslt ) {
  567. model.setValue("/root/main/acptinfo/rsltlst/item["+ model.getValue("/root/main/tempinfo/rslttext/rslt_idx") +"]/testrsltcnts", tar_textrslt.currentText );
  568. }
  569. grp_textrslt.visible = false;
  570. ]]>
  571. </script>
  572. </button>
  573. <textarea id="tar_textrslt" ref="/root/main/tempinfo/rslttext/rsltcnts" style="left:5px; top:30px; width:285px; height:265px; "/>
  574. <script type="javascript" ev:event="DOMFocusOut">
  575. <![CDATA[
  576. // grp_textrslt.visible = false;
  577. ]]>
  578. </script>
  579. <output id="opt_rsltidx" ref="/root/main/tempinfo/rslttext/rslt_idx" class="output_fix" visibility="hidden" style="left:130px; top:5px; width:36px; height:19px; "/>
  580. <output id="opt_rsltcol" ref="/root/main/tempinfo/rslttext/rslt_col" class="output_fix" visibility="hidden" style="left:175px; top:5px; width:36px; height:19px; "/>
  581. <button id="btn_rsltclose" class="btn2_letter2" style="left:246px; top:4px; width:42px; height:19px; ">
  582. <caption>취소</caption>
  583. <script type="javascript" ev:event="DOMActivate">
  584. <![CDATA[
  585. grp_textrslt.visible = false;
  586. ]]>
  587. </script>
  588. </button>
  589. <button id="btn_rsltsave" class="btn2_letter2" style="left:201px; top:4px; width:42px; height:19px; ">
  590. <caption>저장</caption>
  591. <script type="javascript" ev:event="DOMActivate">
  592. <![CDATA[
  593. if( model.getValue("/root/main/tempinfo/rslttext/rslt_col") == window.parent.javascript.col_rslt ) {
  594. var idx = model.getValue("/root/main/tempinfo/rslttext/rslt_idx");
  595. if( idx < 0) return ;
  596. model.setValue("/root/main/acptinfo/rsltlst/item["+ idx +"]/testrsltcnts", tar_textrslt.currentText );
  597. if( grd_rsltlst.rowStatus(idx) == 0 ) {
  598. grd_rsltlst.rowStatus(idx) = 2;
  599. }
  600. }
  601. grp_textrslt.visible = false;
  602. ]]>
  603. </script>
  604. </button>
  605. </group>
  606. <switch id="swt_judg" style="left:5px; top:215px; width:764px; height:323px; border-color:#c7a3cf; border-style:solid; ">
  607. <case id="case_first" selected="true">
  608. <caption id="caption11" class="cell_2" style="left:5px; top:292px; width:84px; height:23px; text-align:center; vertical-align:middle; ">판정구분</caption>
  609. <input id="input9" ref="/root/main/acptinfo/judginfo/livercncrjudg/judgdd" class="input_essential" disabled="true" inputtype="date" style="left:92px; top:8px; width:98px; height:19px; "/>
  610. <line id="line31" class="line_1" style="x1:5px; y1:1px; x2:755px; y2:1px; "/>
  611. <line id="line25" class="line_2" style="x1:5px; y1:29px; x2:755px; y2:29px; "/>
  612. <select1 id="cmb_scndjudgdrid" ref="/root/main/acptinfo/judginfo/livercncrjudg/judgdrid" class="combo" appearance="minimal" style="left:281px; top:8px; width:84px; height:19px; ">
  613. <choices>
  614. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  615. <label ref="drnm"/>
  616. <value ref="drid"/>
  617. </itemset>
  618. </choices>
  619. </select1>
  620. <caption id="caption36" class="cell_2" style="left:194px; top:6px; width:84px; height:23px; text-align:center; vertical-align:middle; ">판정의</caption>
  621. <caption id="caption37" class="cell_2" style="left:5px; top:6px; width:84px; height:23px; text-align:center; vertical-align:middle; ">판정일자</caption>
  622. <caption id="caption3" class="cell_2" style="left:5px; top:32px; width:84px; height:51px; text-align:center; vertical-align:middle; ">간장질환검사</caption>
  623. <caption id="caption5" class="cell_1" style="left:92px; top:33px; width:84px; height:23px; text-align:center; vertical-align:middle; ">ALT(S-GPT)</caption>
  624. <caption id="caption2" class="cell_1" style="left:92px; top:59px; width:84px; height:23px; text-align:center; vertical-align:middle; ">C형간염</caption>
  625. <caption id="caption4" class="cell_1" style="left:92px; top:85px; width:84px; height:23px; text-align:center; vertical-align:middle; ">관찰소견</caption>
  626. <caption id="caption6" class="cell_1" style="left:92px; top:137px; width:84px; height:75px; text-align:center; vertical-align:middle; ">간암의심</caption>
  627. <caption id="caption7" class="cell_1" style="left:92px; top:214px; width:84px; height:23px; text-align:center; vertical-align:middle; ">기타</caption>
  628. <caption id="caption8" class="cell_1" style="left:178px; top:162px; width:84px; height:23px; text-align:center; vertical-align:middle; ">병변위치</caption>
  629. <caption id="caption9" class="cell_1" style="left:178px; top:188px; width:84px; height:23px; text-align:center; vertical-align:middle; ">병변크기</caption>
  630. <caption id="caption10" class="cell_1" style="left:178px; top:137px; width:84px; height:23px; text-align:center; vertical-align:middle; ">간암형</caption>
  631. <line id="line2" class="line_2" style="x1:178px; y1:160px; x2:755px; y2:160px; "/>
  632. <line id="line3" class="line_2" style="x1:178px; y1:185px; x2:755px; y2:185px; "/>
  633. <line id="line4" class="line_2" style="x1:92px; y1:211px; x2:755px; y2:211px; "/>
  634. <line id="line5" class="line_2" style="x1:92px; y1:56px; x2:755px; y2:56px; "/>
  635. <line id="line6" class="line_2" style="x1:5px; y1:82px; x2:755px; y2:82px; "/>
  636. <line id="line7" class="line_2" style="x1:92px; y1:108px; x2:755px; y2:108px; "/>
  637. <line id="line8" class="line_2" style="x1:5px; y1:237px; x2:755px; y2:237px; "/>
  638. <caption id="caption12" class="cell_2" style="left:5px; top:85px; width:84px; height:152px; text-align:center; vertical-align:middle; ">초음파검사</caption>
  639. <caption id="caption13" class="cell_2" style="left:5px; top:240px; width:84px; height:49px; text-align:center; vertical-align:middle; ">
  640. <![CDATA[혈청아파태아
  641. 단백검사]]>
  642. </caption>
  643. <caption id="caption15" class="cell_1" style="left:92px; top:266px; width:84px; height:23px; text-align:center; vertical-align:middle; ">정량법</caption>
  644. <caption id="caption16" class="cell_1" style="left:92px; top:240px; width:84px; height:23px; text-align:center; vertical-align:middle; ">정성법</caption>
  645. <line id="line9" class="line_2" style="x1:92px; y1:263px; x2:755px; y2:263px; "/>
  646. <line id="line10" class="line_2" style="x1:5px; y1:289px; x2:755px; y2:289px; "/>
  647. <select1 id="rdo_serumexammthd" ref="/root/main/acptinfo/judginfo/livercncrjudg/serumexammthd" appearance="full" overflow="visible" style="left:99px; top:243px; width:15px; height:15px; border-style:none; ">
  648. <choices>
  649. <item>
  650. <label/>
  651. <value>S</value>
  652. </item>
  653. </choices>
  654. </select1>
  655. <select1 id="radio1" ref="/root/main/acptinfo/judginfo/livercncrjudg/serumexammthd" appearance="full" overflow="visible" style="left:99px; top:269px; width:15px; height:15px; border-style:none; ">
  656. <choices>
  657. <item>
  658. <label/>
  659. <value>L</value>
  660. </item>
  661. </choices>
  662. </select1>
  663. <caption id="caption17" class="cell_1" style="left:270px; top:33px; width:84px; height:23px; text-align:center; vertical-align:middle; ">B형간염</caption>
  664. <caption id="caption18" class="cell_1" style="left:515px; top:33px; width:120px; height:23px; text-align:center; vertical-align:middle; ">ALT및B형간염 판정</caption>
  665. <select1 id="cmb_bhptsexammthd" ref="/root/main/acptinfo/judginfo/livercncrjudg/bhptsexammthd" class="combo" appearance="minimal" style="left:357px; top:35px; width:70px; height:19px; ">
  666. <choices>
  667. <itemset nodeset="/root/init/judginfo/bhptsexammthdlst/G049">
  668. <label ref="cdnm"/>
  669. <value ref="cdid"/>
  670. </itemset>
  671. </choices>
  672. </select1>
  673. <input id="ipt_liveralt" ref="/root/main/acptinfo/judginfo/livercncrjudg/liveralt" style="left:179px; top:35px; width:84px; height:19px; "/>
  674. <select1 id="cmb_bhptsexamrslt" ref="/root/main/acptinfo/judginfo/livercncrjudg/bhptsexamrslt" class="combo" appearance="minimal" style="left:430px; top:35px; width:70px; height:19px; ">
  675. <choices>
  676. <itemset nodeset="/root/init/judginfo/reactexamrsltlst/G030">
  677. <label ref="cdnm"/>
  678. <value ref="cdid"/>
  679. </itemset>
  680. </choices>
  681. </select1>
  682. <select1 id="cmb_bhptsjud" ref="/root/main/acptinfo/judginfo/livercncrjudg/bhptsjud" class="combo" appearance="minimal" style="left:638px; top:35px; width:117px; height:19px; ">
  683. <choices>
  684. <itemset nodeset="/root/init/judginfo/bhptsexammthdlst/G050">
  685. <label ref="cdnm"/>
  686. <value ref="cdid"/>
  687. </itemset>
  688. </choices>
  689. </select1>
  690. <select1 id="cmb_chptsexammthd" ref="/root/main/acptinfo/judginfo/livercncrjudg/chptsexammthd" class="combo" appearance="minimal" style="left:179px; top:61px; width:70px; height:19px; ">
  691. <choices>
  692. <itemset nodeset="/root/init/judginfo/bhptsexammthdlst/G049">
  693. <label ref="cdnm"/>
  694. <value ref="cdid"/>
  695. </itemset>
  696. </choices>
  697. </select1>
  698. <select1 id="cmb_chptsexamrslt" ref="/root/main/acptinfo/judginfo/livercncrjudg/chptsexamrslt" class="combo" appearance="minimal" style="left:251px; top:61px; width:70px; height:19px; ">
  699. <choices>
  700. <itemset nodeset="/root/init/judginfo/reactexamrsltlst/G030">
  701. <label ref="cdnm"/>
  702. <value ref="cdid"/>
  703. </itemset>
  704. </choices>
  705. </select1>
  706. <caption id="caption19" style="left:325px; top:61px; width:60px; height:19px; ">(검사결과</caption>
  707. <input id="ipt_chptsexamrsltval" ref="/root/main/acptinfo/judginfo/livercncrjudg/chptsexamrsltval" style="left:382px; top:60px; width:35px; height:19px; "/>
  708. <input id="ipt_chptsexamrsltbval" ref="/root/main/acptinfo/judginfo/livercncrjudg/chptsexamrsltbval" style="left:473px; top:60px; width:35px; height:19px; "/>
  709. <caption id="caption20" style="left:423px; top:60px; width:47px; height:19px; ">, 기준치</caption>
  710. <caption id="caption21" class="cell_1" style="left:515px; top:59px; width:120px; height:23px; text-align:center; vertical-align:middle; ">C형간염 판정</caption>
  711. <select1 id="cmb_chptsjudg" ref="/root/main/acptinfo/judginfo/livercncrjudg/chptsjudg" class="combo" appearance="minimal" style="left:638px; top:61px; width:117px; height:19px; ">
  712. <choices>
  713. <itemset nodeset="/root/init/judginfo/bhptsexammthdlst/G050">
  714. <label ref="cdnm"/>
  715. <value ref="cdid"/>
  716. </itemset>
  717. </choices>
  718. </select1>
  719. <select1 id="cmb_echoexamobscmt1" ref="/root/main/acptinfo/judginfo/livercncrjudg/echoexamobscmt1" class="combo" appearance="minimal" style="left:179px; top:87px; width:125px; height:19px; ">
  720. <choices>
  721. <itemset nodeset="/root/init/judginfo/echoexamobscmtlst/G051">
  722. <label ref="cdnm"/>
  723. <value ref="cdid"/>
  724. </itemset>
  725. </choices>
  726. </select1>
  727. <select1 id="cmb_echoexamobscmt2" ref="/root/main/acptinfo/judginfo/livercncrjudg/echoexamobscmt2" class="combo" appearance="minimal" style="left:310px; top:87px; width:125px; height:19px; ">
  728. <choices>
  729. <itemset nodeset="/root/init/judginfo/echoexamobscmtlst/G051">
  730. <label ref="cdnm"/>
  731. <value ref="cdid"/>
  732. </itemset>
  733. </choices>
  734. </select1>
  735. <select1 id="cmb_echoexamobscmt3" ref="/root/main/acptinfo/judginfo/livercncrjudg/echoexamobscmt3" class="combo" appearance="minimal" style="left:440px; top:87px; width:125px; height:19px; ">
  736. <choices>
  737. <itemset nodeset="/root/init/judginfo/echoexamobscmtlst/G051">
  738. <label ref="cdnm"/>
  739. <value ref="cdid"/>
  740. </itemset>
  741. </choices>
  742. </select1>
  743. <select id="chk_liverjudgflag" ref="/root/main/acptinfo/judginfo/livercncrjudg/judgflag" overflow="visible" appearance="full" cellspacing="0" cols="5" vcellspacing="5" style="left:92px; top:293px; width:258px; height:23px; border-style:none; ">
  744. <choices>
  745. <itemset nodeset="/root/init/judginfo/judgflaglst/G057">
  746. <label ref="cdnm"/>
  747. <value ref="cdid"/>
  748. </itemset>
  749. </choices>
  750. <script type="javascript" ev:event="xforms-value-changed">
  751. <![CDATA[
  752. var judgflag = model.getValue("/root/main/acptinfo/judginfo/livercncrjudg/judgflag");
  753. if(judgflag.length < 2){
  754. judgflag = "0" + judgflag;
  755. }
  756. var bol = isSearchString(judgflag ,"04");
  757. if (bol == true) {
  758. ipt_judgflagetcrem.disabled = false;
  759. } else {
  760. ipt_judgflagetcrem.disabled = true;
  761. }
  762. ]]>
  763. </script>
  764. </select>
  765. <caption id="caption22" class="cell_2" style="left:372px; top:6px; width:84px; height:23px; text-align:center; vertical-align:middle; ">권고사항</caption>
  766. <input id="ipt_judgexamcnts" ref="/root/main/acptinfo/judginfo/livercncrjudg/judgexamcnts" style="left:460px; top:8px; width:295px; height:19px; "/>
  767. <caption id="caption14" class="cell_1" style="left:92px; top:111px; width:84px; height:23px; text-align:center; vertical-align:middle; ">양성질환</caption>
  768. <line id="line11" class="line_2" style="x1:92px; y1:134px; x2:755px; y2:134px; "/>
  769. <line id="line12" class="line_3" style="x1:5px; y1:316px; x2:755px; y2:316px; "/>
  770. <input id="ipt_judgflagetcrem" ref="/root/main/acptinfo/judginfo/livercncrjudg/judgflagetcrem" style="left:355px; top:294px; width:265px; height:19px; "/>
  771. <select id="chk_echoexambenisick" ref="/root/main/acptinfo/judginfo/livercncrjudg/echoexambenisick" overflow="visible" appearance="full" cellspacing="0" cols="5" vcellspacing="5" style="left:179px; top:111px; width:571px; height:23px; border-style:none; ">
  772. <choices>
  773. <itemset nodeset="/root/init/judginfo/echoexambenisicklst/G052">
  774. <label ref="cdnm"/>
  775. <value ref="cdid"/>
  776. </itemset>
  777. </choices>
  778. </select>
  779. <select id="chk_echoexamhepadoubsickpos" ref="/root/main/acptinfo/judginfo/livercncrjudg/echoexamhepadoubsickpos" overflow="visible" appearance="full" cellspacing="0" cols="8" vcellspacing="5" style="left:265px; top:162px; width:485px; height:23px; border-style:none; ">
  780. <choices>
  781. <itemset nodeset="/root/init/judginfo/echoexamhepadoubsickposlst/G054">
  782. <label ref="cdnm"/>
  783. <value ref="cdid"/>
  784. </itemset>
  785. </choices>
  786. </select>
  787. <select id="chk_echoexamhepadoubetc" ref="/root/main/acptinfo/judginfo/livercncrjudg/echoexamhepadoubetc" overflow="visible" appearance="full" cellspacing="0" cols="5" vcellspacing="5" style="left:180px; top:215px; width:345px; height:20px; border-style:none; ">
  788. <choices>
  789. <itemset nodeset="/root/init/judginfo/echoexamhepadoubetclst/G056">
  790. <label ref="cdnm"/>
  791. <value ref="cdid"/>
  792. </itemset>
  793. </choices>
  794. <script type="javascript" ev:event="xforms-value-changed">
  795. <![CDATA[
  796. var echoexamhepadoubetc = model.getValue("/root/main/acptinfo/judginfo/livercncrjudg/echoexamhepadoubetc");
  797. if(echoexamhepadoubetc.length < 2){
  798. echoexamhepadoubetc = "0" + echoexamhepadoubetc;
  799. }
  800. var bol = isSearchString(echoexamhepadoubetc ,"05");
  801. if (bol == true) {
  802. ipt_echoexamhepadoubetcrem.disabled = false;
  803. } else {
  804. ipt_echoexamhepadoubetcrem.disabled = true;
  805. }
  806. ]]>
  807. </script>
  808. </select>
  809. <input id="ipt_echoexamhepadoubetcrem" ref="/root/main/acptinfo/judginfo/livercncrjudg/echoexamhepadoubetcrem" style="left:530px; top:215px; width:220px; height:19px; "/>
  810. <select1 id="rdo_echoexamhepadoubsicksize" ref="/root/main/acptinfo/judginfo/livercncrjudg/echoexamhepadoubsicksize" appearance="full" cols="3" overflow="visible" style="left:265px; top:190px; width:485px; height:20px; border-style:none; ">
  811. <choices>
  812. <itemset nodeset="/root/init/judginfo/echoexamhepadoubsicksizelst/G055">
  813. <label ref="cdnm"/>
  814. <value ref="cdid"/>
  815. </itemset>
  816. </choices>
  817. </select1>
  818. <select1 id="rdo_serumexamfixcommthdrslt" ref="/root/main/acptinfo/judginfo/livercncrjudg/serumexamfixcommthdrslt" appearance="full" cols="3" overflow="visible" style="left:180px; top:242px; width:570px; height:20px; border-style:none; ">
  819. <choices>
  820. <itemset nodeset="/root/init/judginfo/reactexamrsltlst/G030">
  821. <label ref="cdnm"/>
  822. <value ref="cdid"/>
  823. </itemset>
  824. </choices>
  825. </select1>
  826. <caption id="caption23" class="cell_1" style="left:178px; top:266px; width:84px; height:23px; text-align:center; vertical-align:middle; ">검사결과</caption>
  827. <input id="ipt_serumexamfixqtymthdexamrslt" ref="/root/main/acptinfo/judginfo/livercncrjudg/serumexamfixqtymthdexamrslt" style="left:265px; top:268px; width:84px; height:19px; "/>
  828. <caption id="caption24" class="cell_1" style="left:355px; top:266px; width:84px; height:23px; text-align:center; vertical-align:middle; ">검사단위</caption>
  829. <input id="ipt_serumexamfixqtymthdexambval" ref="/root/main/acptinfo/judginfo/livercncrjudg/serumexamfixqtymthdexambval" style="left:665px; top:268px; width:84px; height:19px; "/>
  830. <caption id="caption25" class="cell_1" style="left:578px; top:266px; width:84px; height:23px; text-align:center; vertical-align:middle; ">기준치</caption>
  831. <button id="btn_liverjudge" class="btn2_letter4" style="left:383px; top:8px; width:64px; height:14px; ">
  832. <caption>권고사항</caption>
  833. <script type="javascript" ev:event="DOMActivate">
  834. <![CDATA[
  835. fGetJudgExmpCnts(ipt_judgexamcnts,"G014");
  836. ]]>
  837. </script>
  838. </button>
  839. <select1 id="rdo_echoexamhepadoubkind" ref="/root/main/acptinfo/judginfo/livercncrjudg/echoexamhepadoubkind" appearance="full" cols="10" overflow="visible" style="left:265px; top:137px; width:485px; height:23px; border-style:none; ">
  840. <choices>
  841. <itemset nodeset="/root/init/judginfo/echoexamhepadoubkindlst/G053">
  842. <label ref="cdnm"/>
  843. <value ref="cdid"/>
  844. </itemset>
  845. </choices>
  846. </select1>
  847. <select1 id="rdo_serumexamfixqtymthdexamunit" ref="/root/main/acptinfo/judginfo/livercncrjudg/serumexamfixqtymthdexamunit" appearance="full" cols="10" overflow="visible" style="left:442px; top:268px; width:133px; height:20px; border-style:none; ">
  848. <choices>
  849. <itemset nodeset="/root/init/judginfo/serumexamfixqtymthdexamunitlst/G069">
  850. <label ref="cdnm"/>
  851. <value ref="cdid"/>
  852. </itemset>
  853. </choices>
  854. </select1>
  855. <bool id="bol_oldlivercncrpatyn" checkvalue="Y,N" ref="/root/main/acptinfo/judginfo/livercncrjudg/oldlivercncrpatyn" style="left:620px; top:295px; width:30px; height:20px; "/>
  856. <caption id="caption26" style="left:645px; top:295px; width:106px; height:20px; ">기존 간암 환자여부</caption>
  857. </case>
  858. </switch>
  859. <button id="btn_judg" class="btn5_letter4" style="left:705px; top:195px; width:64px; height:19px; ">
  860. <caption>판정저장</caption>
  861. <script type="javascript" ev:event="DOMActivate">
  862. <![CDATA[
  863. if ( messageBox("판정내역을 ", "Q002") == 6 ) {
  864. fInitSaveData();
  865. fSaveJudg(true);
  866. }
  867. ]]>
  868. </script>
  869. </button>
  870. <button id="btn_fstjudg" class="btn_sw" group="tab" selected="true" style="left:5px; top:194px; width:90px; height:22px; ">
  871. <caption>간암판정</caption>
  872. <toggle case="case_first" ev:event="onclick"/>
  873. </button>
  874. <datagrid id="grd_rsltlst" nodeset="/root/main/acptinfo/rsltlst/item" allowselection="false" caption="처방일자^실시처방&#xA;유일번호^처방번호^검사코드^명칭^연계결과^결과^공단연계^단위^종류^비고^판정코드^판정값^LIS판정^Low^High" colsep="^" colwidth="70, 69, 63, 74, 105, 71, 136, 76, 58, 43, 67, 80, 65, 60, 42, 42" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" tooltip="true" style="left:5px; top:1px; width:764px; height:189px; ">
  875. <col ref="prcpdd" visibility="hidden"/>
  876. <col ref="execprcpuniqno" visibility="hidden"/>
  877. <col ref="prcpno" visibility="hidden"/>
  878. <col ref="testcd"/>
  879. <col ref="testnm"/>
  880. <col ref="outtestrsltcnts"/>
  881. <col ref="testrsltcnts" type="input"/>
  882. <col ref="assorsltcnts" type="input"/>
  883. <col ref="rsltunit"/>
  884. <col disabled="true" ref="rsltflag" type="combo">
  885. <choices>
  886. <itemset nodeset="/root/init/baseinfo/rslttypelst/A0066">
  887. <label ref="cdnm"/>
  888. <value ref="cdid"/>
  889. </itemset>
  890. </choices>
  891. </col>
  892. <col class="gridinput" ref="remcnts" type="input" visibility="hidden"/>
  893. <col ref="judgcd" visibility="hidden"/>
  894. <col ref="judgrsltcnts" visibility="visible"/>
  895. <col ref="judgmark" visibility="hidden"/>
  896. <col ref="minval"/>
  897. <col ref="maxval"/>
  898. <script type="javascript" ev:event="onendedit">
  899. <![CDATA[
  900. if(getUserInfo("dutplceinstcd") == "011"){
  901. if (event.keyCode == 13 ){
  902. grp_asso.visible = false;
  903. if(grd_assorsltlst.rows != 1){
  904. for(var i=grd_assorsltlst.rows; i>=grd_assorsltlst.fixedRows; i--){
  905. grd_assorsltlst.deleteRow(i);
  906. }
  907. }
  908. if (grd_rsltlst.col == window.parent.javascript.col_rslt ) {
  909. //선택형검사결과의 결과컬럼
  910. if ((grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="O")||(grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="T")){
  911. var vtestcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testcd"));
  912. var vsubcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testrsltcnts"));
  913. var cdata = fdataValue(vtestcd,vsubcd);
  914. if (cdata!=null){
  915. //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("judgcd")) = model.getValue("/root/main/tempinfo/choilst/item3["+nodenumber+"]/judgexmpcd");
  916. //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("judgrsltcnts")) = model.getValue("/root/main/tempinfo/choilst/item3["+nodenumber+"]/judgexmpcnts");
  917. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcnts")) = cdata; //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testrsltcnts"));
  918. //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testrsltcnts")) = cdata;
  919. }
  920. }
  921. if (grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="N"){
  922. var maxval = eval(grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("maxval")));
  923. var minval = eval(grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("minval")));
  924. var testrsltcnts = eval(grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testrsltcnts")));
  925. if(maxval < testrsltcnts){
  926. grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("judgrsltcnts")) = "H";
  927. } else if(minval > testrsltcnts){
  928. grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("judgrsltcnts")) = "L";
  929. } else {
  930. grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("judgrsltcnts")) = "";
  931. }
  932. }
  933. window.parent.javascript.fCalcRslt(grd_rsltlst.colRef("testrsltcnts"));
  934. window.parent.javascript.fSetJudgStat(grd_rsltlst.colRef("testrsltcnts"));
  935. }
  936. else if(grd_rsltlst.col == window.parent.javaScript.col_assorslt ) {
  937. if (grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="O"){
  938. //선택형검사결과의 공단결과
  939. var vtestcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("testcd"));
  940. var vsubcd = grd_rsltlst.valueMatrix(grd_rsltlst.row , grd_rsltlst.colRef("assorsltcnts"));
  941. var cdata = fdataValueAsso(vtestcd,vsubcd);
  942. if(cdata!=null){
  943. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("judgcd")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso["+nodenumber+"]/judgexmpcd");
  944. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("judgrsltcnts")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso["+nodenumber+"]/judgexmpcnts");
  945. //grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testrsltcnts")) = cdata;
  946. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcnts")) = cdata;
  947. }
  948. }
  949. //window.parent.javascript.fSetAssoRslt(grd_rsltlst.labelMatrix(grd_rsltlst.row, window.parent.javaScript.col_assorslt ) );
  950. /*검사결과 자동계산*/
  951. window.parent.javascript.fCalcRslt(grd_rsltlst.colRef("assorsltcnts"));
  952. //window.parent.javascript.fSetJudgStat(grd_rsltlst.colRef("assorsltcnts"));
  953. }
  954. grd_rsltlst.row = grd_rsltlst.row +1;
  955. }
  956. }
  957. ]]>
  958. </script>
  959. <script type="javascript" ev:event="onstartedit">
  960. <![CDATA[
  961. if(getUserInfo("dutplceinstcd") == "011"){
  962. if (grd_rsltlst.valueMatrix(grd_rsltlst.row,grd_rsltlst.colRef("rsltflag"))=="O" && grd_rsltlst.col == grd_rsltlst.colRef("assorsltcnts")){
  963. var testcd = grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("testcd"));
  964. model.removeNodeset("/root/main/tempinfo/assorsltlst/itemasso");
  965. grd_assorsltlst.rebuild();
  966. var nodeCount = getNodesetCount("/root/main/acptinfo/rsltlst/itemassoexmp");
  967. for (var i=0; i<=nodeCount;i++){
  968. if (model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+ i +"]/testcd") == testcd){
  969. grd_assorsltlst.addRow();
  970. grd_assorsltlst.valueMatrix(grd_assorsltlst.row, grd_assorsltlst.colRef("rsltcd")) = model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i+"]/rsltcd");
  971. grd_assorsltlst.valueMatrix(grd_assorsltlst.row, grd_assorsltlst.colRef("rsltnm")) = model.getValue("/root/main/acptinfo/rsltlst/itemassoexmp["+i+"]/rsltnm");
  972. }
  973. }
  974. grp_asso.visible = true;
  975. model.refresh();
  976. }
  977. }
  978. ]]>
  979. </script>
  980. </datagrid>
  981. <button id="btn_small" class="icon_top" style="left:5px; top:1px; width:26px; height:19px; ">
  982. <caption/>
  983. <script type="javascript" ev:event="DOMActivate">
  984. <![CDATA[
  985. fSetRsltSwtSize(false);
  986. ]]>
  987. </script>
  988. </button>
  989. <button id="btn_large" class="icon_bottom" style="left:5px; top:1px; width:26px; height:19px; ">
  990. <caption/>
  991. <script type="javascript" ev:event="DOMActivate">
  992. <![CDATA[
  993. fSetRsltSwtSize(true);
  994. ]]>
  995. </script>
  996. </button>
  997. <group id="grp_asso" visibility="hidden" style="left:80px; top:55px; width:275px; height:245px; ">
  998. <caption id="caption57" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">공단결과입력</caption>
  999. <datagrid id="grd_assorsltlst" nodeset="/root/main/tempinfo/assorsltlst/itemasso" allowselection="false" caption="코드^결과내용" colsep="^" colwidth="36, 185" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:23px; width:265px; height:215px; ">
  1000. <col ref="rsltcd"/>
  1001. <col ref="rsltnm"/>
  1002. <script type="javascript" ev:event="ondblclick">
  1003. <![CDATA[
  1004. //그리드의 셀 이외의 곳을 클릭하면 종료한다.
  1005. if(!eval(grd_assorsltlst.iscell(event.target))) return false;
  1006. // 그리드의 헤더부분을 클릭하면 종료한다.
  1007. if(eval(grd_assorsltlst.row) < eval(grd_assorsltlst.fixedRows)) return false;
  1008. var idx = grd_assorsltlst.row;
  1009. if( idx < 1) return ;
  1010. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcnts")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + idx + "]/rsltnm" );
  1011. grd_rsltlst.valueMatrix(grd_rsltlst.row, grd_rsltlst.colRef("assorsltcd")) = model.getValue("/root/main/tempinfo/assorsltlst/itemasso[" + idx + "]/rsltcd" );
  1012. grd_rsltlst.rowStatus(grd_rsltlst.row) = 2;
  1013. var nextRow = grd_rsltlst.row + 1
  1014. if(grd_rsltlst.colType(grd_rsltlst.col) == "input" && nextRow < grd_rsltlst.rows) {
  1015. grd_rsltlst.row = nextRow;
  1016. grd_rsltlst.editCell();
  1017. }
  1018. if(grd_rsltlst.valueMatrix(nextRow, grd_rsltlst.colRef("rsltflag")) != "O"){
  1019. grp_asso.visible = false;
  1020. }else{
  1021. grp_asso.visible = true;
  1022. }
  1023. ]]>
  1024. </script>
  1025. </datagrid>
  1026. <line id="line19" class="line_1" style="x1:5px; y1:20px; x2:270px; y2:20px; "/>
  1027. <button id="btn_assoclose" class="icon_plus" style="left:255px; top:4px; width:13px; height:15px; ">
  1028. <caption/>
  1029. <script type="javascript" ev:event="DOMActivate">
  1030. <![CDATA[
  1031. grp_asso.visible = false;
  1032. ]]>
  1033. </script>
  1034. </button>
  1035. </group>
  1036. </xhtml:body>
  1037. </xhtml:html>